//go:build wireinject
// +build wireinject

package main

import (
	"geek-homework/week04/api/v1/router"
	"geek-homework/week04/internal/biz"
	"geek-homework/week04/internal/data"
	"geek-homework/week04/internal/pkg/cfg"
	"geek-homework/week04/internal/service"
	"github.com/google/wire"
	"net/http"
)

func initApp() (*http.Server, func(), error) {
	panic(wire.Build(cfg.Provider, data.ProviderSet, biz.ProviderSet, service.ProviderSet, router.ProviderSet, newApp))
}
